package com.example._06springaop.bpp;

import org.springframework.stereotype.Component;

@Component
public class CartServiceImpl implements CartService{
    @Override
    public boolean addCart(String product) {
        if(product!=null)
        {System.out.println("添加购物车成功");
        return true;
       }
        else {throw new RuntimeException("添加购物车失败");
        }
    }
}
